package com.dgz.springboot18.service;

import com.dgz.springboot18.pojo.StudentInfo;
import com.dgz.springboot18.pojo.StudentTask;
import com.dgz.springboot18.pojo.TaskInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.mongodb.repository.Query;

public interface TaskService {

    TaskInfo addTask(TaskInfo taskInfo);

    void delTask(String id);

    TaskInfo updTask(TaskInfo taskInfo);

    TaskInfo queryTask(String id);

    Page<TaskInfo> queryTasks(Integer page, Integer size);

    Page<StudentTask> queryLast(StudentTask studentTask, Integer page, Integer size);

    StudentInfo queryStu(String id);

    Page<StudentTask> queryLastById(StudentTask studentTask,Integer page,Integer size);

}
